package com.java.springboot.service;

import com.java.springboot.mapper.Bookmapper;
import com.java.springboot.model.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookserviceImpl implements Bookservice {

    @Autowired
     private Bookmapper bookmapper;

    @Override
    public List<Book> getif(Book book) {
        return bookmapper.getlist(book);
    }

    @Override
    public List<Book> getlist(Object... args) {
        return bookmapper.getlist(args);
    }


}
